package gof.com.yew.flyweight;

public class FlyWeightDemo01 {
	
	public static void main(String[] args) {
		ChessFlyWeight cfw = FlyWeightFactory.getFlyWeight("黑色");
		ChessFlyWeight cfw1 = FlyWeightFactory.getFlyWeight("黑色");
		System.out.println(cfw);
		System.out.println(cfw1);
		cfw.display(new Coordinate(10, 10));
		cfw1.display(new Coordinate(20, 20));
	}

}
